package Cantella::DJabberd::Model::Admin::Role;

use Reaction::InterfaceModel::ObjectClass;

class Role, which {

  has users =>
    (
     clearer        => '_clear_users',
     domain_model   => '_role_store',
     is             => 'ro',
     isa            => 'Cantella::DJabberd::Model::Admin::User::Collection',
     lazy           => 1,
     orig_attr_name => 'users',
     required       => 1,
     default => sub {
       my $rs = shift->_role_store->users;
       Cantella::DJabberd::Model::Admin::User::Collection->new( _source_resultset => $rs);
     },
    );

};

1;
